package STUDENT.TRANVIETHOANG.OOPs.Tinhtoan;

import java.util.Scanner;

public class View {
	public static void main(String[] args) {
		Scanner sc;
		tinhtoan a = new tinhtoan();
		
		System.out.println("a=");
		sc= new Scanner(System.in);
		a.setA(sc.nextDouble());
		
		System.out.println("b=");
		sc= new Scanner(System.in);
		a.setB(sc.nextDouble());
		
		System.out.println("Nhap phep toan");
		sc= new Scanner(System.in);
		a.setPheptoan(sc.nextLine());
		a.getB();
			{
		if(a.getB()==0){
			System.out.println("Error");
			return;
		}
			}
		Controller dk = new Controller();
		dk.Tinhtoan(a);
		System.out.println(dk.Tinhtoan(a));
	}
}
